PROJECT(security)

find_package(OpenSSL)
if (OpenSSL_FOUND)
    include_directories(${OPENSSL_INCLUDE_DIR})
    add_library(${PROJECT_NAME}
            ${GEEJOAN_LIBRARY_TYPE}
            SecurityCommon.cpp
            ConsultCipther.cpp
            HKDF.cpp
            KeyPairData.cpp
            )
    target_link_libraries(${PROJECT_NAME}
            ${OPENSSL_LIBRARIES}
            common_tool
            curve25519_static
            pthread
            dl
            )
else(OpenSSL_FOUND)
    message(STATUS "Security module is not supported")
endif (OpenSSL_FOUND)


